
package com.zany.util.param;


import org.apache.log4j.Logger;

import com.zany.system.vo.ParameterSingleVO;
import com.zany.util.dao.SingleParamUtilDao;

public class SysParamsUtil {
	
	private static final long serialVersionUID = -570545812529546599L;
	private static Logger logger = Logger.getLogger(SysParamsUtil.class);
    private SingleParamUtilDao singleParamUtilDao;

    public String getParamValue(SysParamKey paramKey) {
    	if(logger.isInfoEnabled()){logger.info("SysParamsUtil.getParamValue()");}
        ParameterSingleVO vo = new ParameterSingleVO();
        vo.setParamCode(paramKey.toString());
        String value = singleParamUtilDao.getSysParams(vo);
        return value;
    }

	public SingleParamUtilDao getSingleParamUtilDao() {
		return singleParamUtilDao;
	}

	public void setSingleParamUtilDao(SingleParamUtilDao singleParamUtilDao) {
		this.singleParamUtilDao = singleParamUtilDao;
	}

}
